package com.example.curriculum;
//【例7-4】应用Volley框架解析JSON数据。
public class Weatherinfo {

    /**
     * city : 北京
     * cityid : 101010100
     * temp1 : 15℃
     * temp2 : 5℃
     * weather : 多云
     * img1 : d1.gif
     * img2 : n1.gif
     * ptime : 08:00
     */

    private String city;
    private String cityid;
    private String temp1;
    private String temp2;
    private String weather;
    private String img1;
    private String img2;
    private String ptime;
    public Weatherinfo(String city, String cityid, String temp1,
                       String temp2, String weather, String img1, String img2, String ptime)
    {
        this.city = city;
        this.cityid = cityid;
        this.temp1 = temp1;
        this.temp2 = temp2;
        this.weather = weather;
        this.img1 = img1;
        this.img2 = img2;
        this.ptime = ptime;
    }
    @Override
    public String toString() {
        return "WeatherInfo [city=" + city + ", cityid=" + cityid + ", temp1="
                + temp1 + ", temp2=" + temp2 + ", weather=" + weather
                + ", ptime=" + ptime + "]";
    }
}